package service.impl;

import dao.DeptDao;
import dao.impl.DeptDaoImpl;
import pojo.Dept;
import service.DeptService;

import java.util.List;

public class DeptServiceImpl implements DeptService {

    DeptDao deptDao = new DeptDaoImpl();

    @Override
    public List<Dept> findAll(Dept dept) {

        List<Dept> depts = deptDao.findAll(dept);
        return depts;
    }
    @Override
    public Dept findDeptById(int id) {

        return deptDao.findDeptById(id);
    }



}
